﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using Mocola.Common;

namespace Mocola.Net.Web
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        public int RoleId = -1;
        public string LoginUser;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RoleId = MocolaUser.CurrentUser.RoleID;         // 得到当前用户所属角色ID号
                LoginUser = MocolaUser.CurrentUser.FullName;    // 得到当前用户的全名
            }
        }
    }
}
